package com.woniu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.PageBean;
import com.woniu.entity.Role;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hyl
 * @since 2022-08-28
 */
public interface IRoleService extends IService<Role> {
    void add(Role role, int[] authIds, int[] menuIds);

    void delete(int roleId);

    void update(Role role, int[] authIds, int[] menuIds);

    int getByName(String name);

    Role getById(int roleId);

    PageBean<Role> getByPage(Role role, int pageNum, int pageSize);

    List<Role> getAll();
}
